package org.yefei.homeworkday14;

public class TestAnimal {

	public static void main(String[] args) {
		Cat cat = new Cat("tom", 1, 20.0, "白色");
		cat.shout();
		cat.run();
		cat.catchMouse("老鼠杰瑞");
		cat.setLength(-90);
		System.out.println("猫的身长是" + cat.getLength() + "cm");
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		
		Myna myna = new Myna("拉拉", 3, 10.0);
		myna.shout();
		myna.run();
		myna.say();
		System.out.println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");

		Animal lion = new Lion("辛巴", 5, 50.0);
		lion.run();
	}

}
